using System;

namespace CGLibrary
{
	public class CGL
	{
		//<summary>
		// This checks if the Save file is there
		// If not it returns false
		//</summary>
		public bool checkSaveFile (String location)
		{
			if (location == null) {
				throw new System.ArgumentException ("Cant set parameter to null", "location");
			} 
			if (location.Contains ("poop")) {
				return true;
			} else {
				return false;
			}
		}
		//<summary>
		// This returns the HP state of the save file
		//</summary>
		public int returnHPFromSave (String location)
		{
			int hp = 0;
			if (location == null) {
				throw new System.ArgumentException ("Cant set location to null", "location");
			}
			if (location.Contains("pop")) {
				hp = 100;
			} else {
				hp = 0;
			}
			return hp;
		}


	}
}

